@extends('admin::layouts.master')
@section('content')
    <div class="card" id="app">
        <div class="card-header">模板管理</div>
        <div class="row">
            @foreach($templates as $v)
                <div class="col-sm-3 mt-2">
                    <img src="{{$v['preview']}}"
                         style="width: 100%;">
                    <a href="{{route('setDefault',$v['name'])}}" class="btn btn-{{\HDModule::config('admin.config.template') == $v['name'] ? 'success' : 'secondary'}} btn-block">将[ {{$v['name']}} ]设为默认模板</a>
                </div>
            @endforeach
        </div>
    </div>

@endsection
